Everything about Bayesian Network totally explained
A
Bayesian network (or a
belief network) is a
probabilistic graphical model that represents a set of
variables and their probabilistic independencies. For example, a Bayesian network could represent the probabilistic relationships between diseases and symptoms. Given symptoms, the network can be used to compute the probabilities of the presence of various diseases.
Formally, Bayesian networks are
directed acyclic graphs whose nodes represent variables, and whose arcs encode conditional independencies between the variables. Nodes can represent any kind of variable, be it a measured parameter, a
latent variable or a hypothesis. They are not restricted to representing
random variables, which represents another "
Bayesian" aspect of a Bayesian network. Efficient algorithms exist that perform
inference and learning in Bayesian networks. Bayesian networks that model sequences of variables (such as for example
speech signals or
protein sequences) are called
dynamic Bayesian networks. Generalizations of Bayesian networks that can represent and solve decision problems under uncertainty are called
influence diagrams.
Definitions and concepts
If there's an
arc from node
A to another node
B,
A is called a
parent of
B, and
B is a
child of
A. The set of parent nodes of a node
Xi is denoted by parents(
Xi). A
directed acyclic graph is a Bayesian Network relative to a set of variables if the
joint distribution of the node values can be written as the product of the local distributions of each node and its parents:
» values. If the local distributions of no variable depends on more than 3 parent variables, the Bayesian network representation only needs to store at most
values.
One advantage of Bayesian networks is that it's intuitively easier for a human to understand (a sparse set of) direct dependencies and local distributions than complete joint distribution.
Inference
Because a Bayesian network is a complete model for the variables and their relationships, it can be used to answer probabilistic queries about them. For example, the network can be used to find out updated knowledge of the state of a subset of variables when other variables (the
evidence variables) are observed. This process of computing the
posterior distribution of variables given evidence is called probabilistic inference. The posterior gives a universal
sufficient statistic for detection applications, when one wants to choose values for the variable subset which minimize some expected loss function, for instance the probability of decision error. A Bayesian network can thus be considered a mechanism for automatically applying
Bayes' theorem to complex problems.
The most common exact inference methods are
variable elimination, which eliminates (by integration or summation) the non-observed non-query variables one by one by distributing the sum over the product;
clique tree propagation, which caches the computation so that many variables can be queried at one time and new evidence can be propagated quickly; and
recursive conditioning, which allows for a space-time tradeoff and matches the efficiency of variable elimination when enough space is used. All of these methods have complexity that's exponential in the network's
treewidth. The most common approximate inference algorithms are stochastic
MCMC simulation,
mini-bucket elimination which generalizes
loopy belief propagation, and
variational methods.
Parameter learning
In order to fully specify the Bayesian network and thus fully represent the joint probability distribution, it's necessary to specify for each node
X the probability distribution for X conditional upon X's parents. The distribution of
X conditional upon its parents may have any form. It is common to work with discrete or
Gaussian distributions since that simplifies calculations. Sometimes only constraints on a distribution are known; one can then use the
principle of maximum entropy to determine a single distribution, the one with the greatest
entropy given the constraints. (Analogously, in the specific context of a
dynamic Bayesian network, one commonly specifies the conditional distribution for the hidden state's temporal evolution to maximize the
entropy rate of the implied stochastic process.)
Often these conditional distributions include parameters which are unknown and must be estimated from data, sometimes using the
maximum likelihood approach. Direct maximization of the likelihood (or of the
posterior probability) is often complex when there are unobserved variables. A classical approach to this problem is the
expectation-maximization algorithm which alternates computing expected values of the unobserved variables conditional on observed data, with maximizing the complete likelihood (or posterior) assuming that previously computed expected values are correct. Under mild regularity conditions this process converges on maximum likelihood (or maximum posterior) values for parameters. A more fully Bayesian approach to parameters is to treat parameters as additional unobserved variables and to compute a full posterior distribution over all nodes conditional upon observed data, then to integrate out the parameters. This approach can be expensive and lead to large dimension models, so in practise classical parameter-setting approaches are more common.
Structure learning
In the simplest case, a Bayesian network is specified by an expert and is then used to perform inference. In other applications the task of defining the network is too complex for humans. In this case the network structure and the parameters of the local distributions must be learned from data.
Learning the structure of a Bayesian network (for example, the graph) is a challenge pursued within
machine learning. The basic idea goes back to a recovery algorithm
developed by Rebane and Pearl (1987) and rests
on the distinction between the three possible types of
adjacent triplets allowed in a directed acyclic graph (DAG):
-
-
-
Type 1 and type 2 represent the same dependencies (for example,
and
are independent given
) and are, therefore, indistinguishable. Type 3, however, can be uniquely identified, since
and
are marginally independent and all other pairs are dependent. Thus, while the
skeletons (the graphs stripped of arrows) of these three triplets are identical, the directionality of the arrows is partially identifiable. The same distinction applies when
and
have common parents, except that one must first condition on those parents. Algorithms have been developed to systematically determine the skeleton of the underlying graph and, then, orient all arrows whose directionality is dictated by the conditional independencies observed.
An alternative method of structural learning uses optimization based search. It requires a
scoring function and a
search strategy. A common scoring function is
posterior probability of the structure given the training data. The time requirement of an
exhaustive search returning back a structure that maximizes the score is
superexponential in the number of variables. A local search strategy makes incremental changes aimed at improving the score of the structure. A global search algorithm like
Markov chain Monte Carlo can avoid getting trapped in
local minima. Friedman et al. talk about using
mutual information between variables and finding a structure that maximizes this. They do this by restricting the parent candidate set to
k nodes and exhaustively searching therein.
Applications
Bayesian networks are used for
modelling knowledge in
bioinformatics (
gene regulatory networks,
protein structure),
medicine,
document classification,
image processing,
data fusion,
decision support systems,
engineering, and
law
.
History
The term "Bayesian networks" was coined by Pearl (1985) to emphasize three aspects:
The often subjective nature of the input information.
The reliance on Bayes's conditioning as the basis for updating information.
The distinction between causal and evidential modes of reasoning, which underscores Thomas Bayes's posthumous paper of 1763.
Informal variants of such networks were first used by legal scholar John Henry Wigmore, in the form of Wigmore charts, to analyse trial evidence in 1913. Another variant, called path diagrams, was developed by the geneticist Sewall Wright and used in social and
behavioral sciences (mostly with linear parametric models).
Further Information
Get more info on 'Bayesian Network'.
|
External Link Exchanges
Do you know how hard it is to get a link from a large encyclopaedia? Well we're different and will prove it. To get a link from us just add the following HTML to your site on a relevant page:
<a href="http://bayesian_network.totallyexplained.com">Bayesian network Totally Explained</a>
Then simply click through this link from your web page. Our crawlers will verify your link, extract the title of your web page and instantly add a link back to it. If you like you can remove the words Totally Explained and embed the link in article text.
As long as your link remains in place, we'll keep our link to you right here. Please play fair - our crawlers are watching. Your site must be closely related to this one's topic. Any kind of spamming, dubious practises or removing the link will result in your link from us being dropped and, potentially, your whole site being banned. |